﻿using ACC.Business;
using ACC.Business.Process;
using ACC.Business.Stn;
using ACC.Data.Comm;
using ACC.Data.Line;
using ACC.Device;
using ACC.LineDevice.KukaPack;
using ACC.Interface.Extensions;
using System.Text;
using System;
using ACC.Device.PLC.Siemens;
using ACC.Data.ACCLog;


namespace Script
{
    /// <summary>
    /// 模组极性检测1, 取消，这一站的功能并入模组堆叠
    /// OP L1M03040 STATION L1M13041, L1M23041
    /// </summary>
    public class L1M13041 : StnProcessKukaPack
    {
        public L1M13041(StnRunningData data)
            : base(data)
        {
        }

        protected override ACCDevice CreateDevice()
        {
            ACCDevice dev = base.CreateDevice();
            if (kukaSiemensDev != null)
            {
                kukaSiemensDev.DB190 = 800;
                kukaSiemensDev.DB190_Offset = 2000;
                kukaSiemensDev.DB192 = 80;
                kukaSiemensDev.DB192_PLC_Offset = 2066; // TO-DO: 66 ?
                kukaSiemensDev.DB193 = 800;
                kukaSiemensDev.DB193_PLC_Offset = 2034;
                kukaSiemensDev.DB193_ACC_Offset = 2068;
                kukaSiemensDev.DB194 = 800;
                kukaSiemensDev.DB194_PLC_Offset = 2034;
                kukaSiemensDev.DB194_PLC_Data_Offset = 2078;
            }
            return dev;

        }
    }
}